package com.systemCapacity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.systemCapacity.common.dto.BattlePlanDto;
import com.systemCapacity.common.lang.Result;
import com.systemCapacity.entity.BattlePlan;

import java.util.List;

public interface BattlePlanService extends IService<BattlePlan> {

    List<BattlePlanDto> getBattlePlans(String taskId);
    List<BattlePlanDto> getBattlePlansNew(String taskId);

    List<BattlePlanDto> getRecommendPlans();
    BattlePlanDto getBattlePlansDetail(String planId);
    BattlePlanDto getRecommendPlan(String recommendPlanId);

    Result saveRecommendPlan(String taskId);
    boolean saveBattlePlan(BattlePlanDto dto);
    boolean saveBattlePlanNew(BattlePlanDto dto, boolean isRemainPlanId, boolean isRecommend);
    boolean saveRecommendPlan(BattlePlanDto dto);

    boolean planExists(String planId);

    boolean deletePlan(String planId);
    boolean deletePlanNew(String planId);
    void editPlan(BattlePlanDto dto);

    List<BattlePlan> getPlansByTaskId(String taskId);

    BattlePlanDto getBattlePlan(String planId);
}
